import Demo2.text;

public class Cat extends text.Animal implements Irun,Iwalk{
    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(getName() + "正在吃猫粮...");
    }

    @Override
    public void run() {
        System.out.println(getName() + "正在跑");
    }

    @Override
    public void walk() {
        System.out.println(getName() + "正在散步");
    }
}
